package org.fuyd.designpattern.proxy;

public class TankLogProxy implements Moveable {

  Moveable m;

  public TankLogProxy(Moveable m) {
    super();
    this.m = m;
  }

  public void move() {
    // 采用实现接口的方法来给tank的move方法加日志
    // 聚合关系
    System.out.println("TankStart>>>");
    m.move();
    System.out.println("<<<TankEnd");
  }

}
